<?php

namespace Respect\Http\Module;

use Respect\Http\Bootstrappable;
use Respect\Environment\EnvironmentableInterface;

class Host implements Bootstrappable
{

    public $host;

    public static function qualify(EnvironmentableInterface $env)
    {
        return $env['HTTP_HOST'] ? new static($env) : false;
    }

    public function __construct(EnvironmentableInterface $env)
    {
        $this->host = $env['HTTP_HOST'];
    }

}
